import request from '/@/utils/request'
import {prefix} from '/@/api/sys'

export function getDictByCodes(data: object) {
    return request({
        url: prefix + '/dict/getDictByCodes',
        method: 'post',
        data
    })
}



export function getTypePage(data: object) {
    return request({
        url: prefix + '/dict/getTypePage',
        method: 'get',
        params:data
    })
}


export function createType(data: object) {
    return request({
        url: prefix + '/dict/createType',
        method: 'post',
        data
    })
}
export function editType(data: object) {
    return request({
        url: prefix + '/dict/editType',
        method: 'post',
        data
    })
}
export function deleteType(data: object) {
    return request({
        url: prefix + '/dict/editType',
        method: 'post',
        data
    })
}

export function getDataPage(data: object) {
    return request({
        url: prefix + '/dict/getDataPage',
        method: 'get',
        params:data
    })
}


export function createData(data: object) {
    return request({
        url: prefix + '/dict/createData',
        method: 'post',
        data
    })
}

export function editData(data: object) {
    return request({
        url: prefix + '/dict/editData',
        method: 'post',
        data
    })
}
export function deleteData(data: object) {
    return request({
        url: prefix + '/dict/deleteData',
        method: 'post',
        data
    })
}

